package com.winning.vsts.merge.service.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;
import java.io.Serializable;
import java.util.StringJoiner;

/**
 * (VstsUser)实体类
 *
 * @author xcl <xcl@winning.com.cn>
 * @date 2021/11/17
 */
@Entity(name = "vsts_user")
public class VstsUser implements Serializable {
    private static final long serialVersionUID = -13699484121177729L;
    /**
    * 项目ID
    */
    @Id
    private Integer id;
    /**
    * vsts 用户id
    */
    private String vstsId;
    /**
    * 用户名称
    */
    private String userName;
    /**
    * 用户账户
    */
    private String userCode;
    /**
    * 用户令牌
    */
    private String userToken;
    /**
    * 创建时间
    */
    private Date createTime;
    /**
    * 修改时间
    */
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getVstsId() {
        return vstsId;
    }

    public void setVstsId(String vstsId) {
        this.vstsId = vstsId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserToken() {
        return userToken;
    }

    public void setUserToken(String userToken) {
        this.userToken = userToken;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", VstsUser.class.getSimpleName() + "[", "]")
            .add("id=" + id)
            .add("vstsId='" + vstsId + "'")
            .add("userName='" + userName + "'")
            .add("userCode='" + userCode + "'")
            .add("userToken='" + userToken + "'")
            .add("createTime=" + createTime)
            .add("updateTime=" + updateTime)
            .toString();
    }
}